### Function Description

Query Cron job details

### Request Parameters

#### Interface parameters

| Fields        | Type   | Required | Description                                                                                                 |
|---------------|--------|----------|-------------------------------------------------------------------------------------------------------------|
| bk_scope_type | string | yes      | Resource scope type. Optional values: biz - Business，biz_set - Business Set                                 |
| bk_scope_id   | string | yes      | Resource scope ID. Corresponds to bk_scope_type, which means business ID or business set ID                 |
| bk_biz_id     | long   | yes      | Deprecated. Business ID. This field has been deprecated and replaced by the field bk_scope_type+bk_scope_id |
| id            | long   | no       | Cron Job ID                                                                                                 |

### Example of request

- GET

```json
/api/v3/get_cron_detail?bk_scope_type=biz&bk_scope_id=1&id=1
```

### Example of responses

```json
{
    "result": true,
    "code": 0,
    "data": {
        "bk_scope_type": "biz",
        "bk_scope_id": "1",
        "job_plan_id": 100,
        "id": 1,
        "name": "test",
        "status": 1,
        "expression": "0/5 * * * ?",
        "global_var_list": [
            {
                "id": 436,
                "name": "ip",
                "server": {
                    "dynamic_group_list": [
                        {
                            "id": "blo8gojho0skft7pr5q0"
                        },
                        {
                            "id": "blo8gojho0sabc7priuy"
                        }
                    ],
                    "ip_list": [
                        {
                            "bk_host_id": 101,
                            "bk_cloud_id": 0,
                            "ip": "127.0.0.1"
                        },
                        {
                            "bk_host_id": 102,
                            "bk_cloud_id": 0,
                            "ip": "127.0.0.2"
                        }
                    ],
                    "topo_node_list": [
                        {
                            "id": 1000,
                            "node_type": "module"
                        }
                    ]
                }
            },
            {
                "id": 437,
                "name": "text",
                "value": "new String value"
            }
        ],
        "creator": "admin",
        "create_time": 1546272000000,
        "last_modify_user": "admin",
        "last_modify_time": 1577807999999
    },
    "job_request_id": "xxx"
}
```

### Response Description

{% include '_generic_response.md.j2' %}

#### data

| Fields           | Type   | Never null | Description                                                                                                                                                                                            |
|------------------|--------|------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| bk_scope_type    | string | yes        | Resource scope type. Optional values: biz - Business，biz_set - Business Set                                                                                                                            |
| bk_scope_id      | string | yes        | Resource scope ID. Corresponds to bk_scope_type, which means business ID or business set ID                                                                                                            |
| job_plan_id      | long   | yes        | Job Plan ID                                                                                                                                                                                            |
| id               | long   | yes        | Cron job ID                                                                                                                                                                                            |
| name             | string | yes        | Cron job name                                                                                                                                                                                          |
| status           | int    | yes        | Cron job status: 1. Started, 2. Paused                                                                                                                                                                 |
| expression       | string | no         | Timing rules for Cron Job crontab, required when creating, optional when modifying. The meaning of each field is: minute hour day month week, for example: 0/5 * * * * ? means execute every 5 minutes |
| global_var_list  | array  | no         | Global variable information                                                                                                                                                                            |
| creator          | string | yes        | Cron job creator                                                                                                                                                                                       |
| create_time      | long   | yes        | Creation time, Unix timestamp                                                                                                                                                                          |
| last_modify_user | string | yes        | Cron job modifier                                                                                                                                                                                      |
| last_modify_time | long   | yes        | Last modified time, Unix timestamp                                                                                                                                                                     |

#### global_var

| Fields | Type   | Never null | Description                                                                                                   |
|--------|--------|------------|---------------------------------------------------------------------------------------------------------------|
| id     | long   | yes        | Global variable id, unique identification. If the id is empty, then name is used as the unique identification |
| name   | string | yes        | Global variable name                                                                                          |
| value  | string | no         | Character, password, value of global variable of array type                                                   |
| server | object | no         | Host type global variable value                                                                               |

#### server

| Fields             | Type  | Never null | Description            |
|--------------------|-------|------------|------------------------|
| ip_list            | array | no         | Static IP list         |
| dynamic_group_list | array | no         | Dynamic grouping list  |
| topo_node_list     | array | no         | Dynamic topo node list |

#### ip

| Fields      | Type   | Never null | Description |
|-------------|--------|------------|-------------|
| bk_cloud_id | int    | yes        | BK-Net ID   |
| ip          | string | yes        | IP Address  |

#### topo_node

| Fields    | Type   | Never null | Description                                                                                |
|-----------|--------|------------|--------------------------------------------------------------------------------------------|
| id        | long   | yes        | Dynamic topo node ID, corresponding to bk_inst_id in CMDB API                              |
| node_type | string | yes        | Dynamic topo node type, corresponding to bk_obj_id in CMDB API, such as "module" and "set" |
